package router

import (
	"gopkg.in/gin-gonic/gin.v1"
	"micr/course"
	"micr/user"
)

func RouterV1(r *gin.Engine) *gin.RouterGroup {
	rv := r.Group("/v1")
	{
		coursev1 := new(course.V1)
		coursev1.Router(rv)
		userv1 := new(user.V1)
		userv1.Router(rv)
	}

	return rv
}

func RouterV2(r *gin.Engine) *gin.RouterGroup {
	rv := r.Group("/v2")
	{
		coursev2 := new(course.V2)
		coursev2.Router(rv)
	}

	return rv
}
